import Vue from 'vue'
import Router from 'vue-router'
import Temp from '../views/Temp.vue';
import About from './about'

import Example from '@/views/example/index';
import Takeout from '@/views/takeout/index';


Vue.use(Router)

export default new Router({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/Example',
      name: 'Example',
      component: Example,
    },
    {
      path: '/takeout',
      name: 'takeout',
      component: Takeout,
    },
    {
      path: '*',
      redirect: '/takeout'
    },
    {
      path: '/temp',
      name: 'temp',
      component: Temp
    },
    ...About
  ]
})
